package com.lin.controller;

import com.google.gson.Gson;
import com.lin.pojo.SysMenus;
import com.lin.pojo.SysUsers;
import com.lin.service.SysMenusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.List;

@RestController
public class SysMenusController {
    @Autowired
   SysMenusService sysMenusService;

    //显示所以菜单
    @RequestMapping("/menu.action")
    public void sysmenusleftshow(SysMenus sysMenus, HttpServletRequest request, HttpServletResponse response) throws IOException {
//        List<SysMenus> list=sysMenusService.querysysmenusparentid();
//
//        PrintWriter writer=response.getWriter();
//
//        writer.print(new Gson().toJson(list));
//
//        writer.flush();
//        writer.close();


    }

}
